package cn.hh.ymcc.dto;

import cn.hh.ymcc.util.AssertUtil;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

@Data
public class RegisterDto {
    @Pattern(regexp = AssertUtil.phoneReg,message = "手机号格式不正确")  // 校验手机号正则表达式
    private String mobile;
    @Size(min = 3,max = 6,message = "密码必须是3-6位") // 密码长度最小3位,最大6位,为空就报错
    private String password;
    @Size(min = 6,max = 6,message = "验证码必须是6位") //验证码必须是6位
    private String smsCode;

    private Integer regChannel; // 注册渠道


}
